﻿/*
 * Created by SharpDevelop.
 * User: StrunevskyDV
 * Date: 02.03.2010
 * Time: 10:12
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;

namespace EmailJabber.Entities.Entities
{
	/// <summary>
	/// Description of EntityBase.
	/// </summary>
	public class EntityBase
	{		
		public Guid Id{get;set;}
		
		protected int monthDifference(DateTime startDate, DateTime endDate)
		{
			int monthsApart = 12 * (startDate.Year - endDate.Year) + startDate.Month - endDate.Month;
			return Math.Abs(monthsApart);
		}
	}
}
